export default function(midder) {
	return [{
			text: '姓名',
			prop: 'name',
			render: ({ row }) => {
				return $Input({
					placeholder: '请输入',
					onInput: e => row.name = e
				}).call(this, row.name);
			}
		},
		{ text: '性别', prop: 'sex' },
		{ text: '年龄', prop: 'age' },
		{
			prop: 'action',
			width: '108px',
			fixed: 'right',
			text: '操作',
			render: (data) => {
				const { proxy } = midder;
				const index = data.$index;
				return [{
					size: 'small',
					type: 'danger',
					is: 'ActionButton',
					text: '删除',
					pop: '确定要删除吗？',
					onClick: () => {
						proxy.datas = proxy.datas.filter((_, k) => k !== index);
					}
				}]
			}
		},
	]
}